package com.eveinfo.api.asset;

import java.util.ArrayList;
import java.util.Collection;

import com.eveinfo.api.ApiResponse;

public class AssetResponse extends ApiResponse {
	
	private static final long serialVersionUID = 5966963898886785386L;
	
	private final ArrayList<ApiAsset> assets = new ArrayList<ApiAsset>();

	public void addAsset(Collection<ApiAsset> assets) {
		this.assets.addAll(assets);
	}

	public ArrayList<ApiAsset> getAssets() {
		return assets;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		for(ApiAsset asset : assets){
			sb.append(asset);
		}
		return sb.toString();
	}
}
